-rw-rw-r-- 1 lixinpeng lixinpeng     8349 Jun 28 11:52 download.log

▽
#!/bin/bash
#hadoop 目录
m_hadoop=/opt/hadoop-3.1.1.3.1.4.0-315/bin/hadoop
#hdfs 前缀,解压成功文件
pre_hdfs_path=/user/quantum_social/dataBackup/underlyingData/chengdu/das/product/download/success
file=$1
while read line; do
  echo "$line"
done < "$file"

# 输入月份offset ，输出当前日期减去offset
cal_date(){
  my_day=`date -d "$1 months ago" +\%Y-\%m-\%d`
  echo $my_day
}

